<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Index</title>
<style type="text/css">
	.fromStyle {
		position: relative;
	    top: 300px;
	    text-align: center;
    }
    .wlcStyle {
    	color : #6666FF;
    	text-align: center;
    }
</style>
</head>
<body>
<div class="container fromStyle">
	<h1 class="wlcStyle text-center">Welcome, Please Login</h1>
	<form  action="./userLogin" method="POST">
		<div class="form-group row">
			<div class="col-md-3"></div>
			<label for="uname" class="control-label col-md-2">User Name : </label>
			<div class="col-md-4">
				<input class="form-control" type="text" id="uname" name="uname" />
			</div>
		</div>
		<div class="form-group row">
			<div class="col-md-3"></div>
			<label for="pwd" class="control-label col-md-2">Password : </label>
			<div class="col-md-4">
				<input class="form-control" type="password" id="pwd" name="pwd" />
			</div>
		</div>
		<button class="btn btn-primary" type="submit">Login</button>
		<c:if test="${faildMsg} != null">
			<div class="alert alert-danger" role="alert">${faildMsg}</div>
		</c:if>
	</form>
</div>

</body>
</html>